<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			div{
				width: 320px;
				position: fixed;
				right: 0px;
				bottom: 0px;
			}
			img{
				display: block;
			}
			span{
				width: 20px;
				height: 20px;
				position: absolute;
				right: 0px;
				top: 0px;
				background: black;
				cursor: pointer;
			}
		</style>
	</head>
	<body>
		<div id="div1">
			<img src="img/up.png"/>
			<img src="img/down.png"/>
			<span id="span1">
				a
			</span>
		</div>
	</body>
	<script type="text/javascript">
		$("span").click(function(){
			$("div").animate({
				"bottom":"-165px"
			},1000).animate({
				"right":"-320px"
			},1000,function(){
				alert("bbbb")
			})
		})
	</script>
</html>
